#ifndef __COMMON_DEF__
#define __COMMON_DEF__

#include "errno-base.h"
#include "typedef.h"
#include "ascii.h"
#include "atomic.h"
#include "ioctl.h"
#include "cpu.h"
#include "gpio.h"
#include "irq.h"
#include "jiffies.h"
#include "list.h"
#include "printf.h"
#include "rect.h"
#include "version.h"
#include "lbuf.h"
#include "lbuf_lite.h"
#include "circular_buf.h"
#include "index.h"
#include "debug_lite.h"
#include "board_config.h"
#include "syscfg_id.h"

#include "customer.h"

#define TICK_COUNT_MAX	UINT32_MAX

typedef enum
{
	COM_PWR_MODE_POWER_OFF = 0,
	COM_PWR_MODE_POWER_ON,
	COM_PWR_MODE_DUT_MODE,
	COM_PWR_MODE_FACTORY_APP_MODE,
	COM_PWR_MODE_MAX,
}PwrMode_e;

#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
    #define STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#else
    #define STATIC_ASSERT(cond, msg) \
			typedef char __static_assert_check_##msg[(cond) ? 1 : -1]
#endif

#define PRINT_INFO_MSG(msg) \
    do { \
        printf("\n"); \
        printf("**************************************************\n"); \
        printf("**\t\t" msg "\t\t**\n"); \
        printf("**************************************************\n"); \
        printf("\n"); \
    } while (0)


#endif  /*__COMMON_DEF__*/
